<template>
	<view>
		<canvas class="canvas" style="width: 550rpx;height: 550rpx;" canvas-id="couponQrcode"></canvas>
	</view>
</template>

<script>
	import qrCode from '../../common/qrcode.js'
	export default {
		data() {
			return {
				nowindex:2,
				amount:'',
				address:'',
				type:'',
				dataObj:{}
			}
		},
		
		onLoad(options) {
			this.type=options.type
			let that=this
			setTimeout(function() {
				that.makeCode()
			}, 10);
		},
		methods: {
			makeCode(){
				
				new qrCode('couponQrcode', {
					text: '123rrrrrrrrr',
					width: '100%',
					height: '100%',
					colorDark: "#333333",
					colorLight: "#FFFFFF",
					correctLevel: qrCode.CorrectLevel.H
				})
			}
		}
	}
</script>

<style>
</style>
